.content-container {
  max-width: var(--nextra-content-width);
  padding-left: max(env(safe-area-inset-left), 1.5rem);
  padding-right: max(env(safe-area-inset-right), 1.5rem);
  margin: 0 auto;
}
.features-container {
  margin: 8rem 0 0;
  padding: 4rem 0;
  background-color: #f3f4f6;
}
.features-container .content-container {
  margin-top: -8rem;
}
.dark .features-container {
  background-color: #000;
}
.headline {
  display: inline-flex;
  font-size: 3.125rem;
  font-size: min(4.375rem, max(8vw, 2.5rem));
  font-weight: 700;
  font-feature-settings: initial;
  letter-spacing: -0.12rem;
  margin-left: -0.2rem;
  margin-top: 3.4rem;
  line-height: 1.1;
  background-image: linear-gradient(146deg, #000, #757a7d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark .headline {
  background-image: linear-gradient(146deg, #fff, #757a7d);
}
.subtitle {
  font-size: 1.3rem;
  font-size: min(1.3rem, max(3.5vw, 1.2rem));
  font-feature-settings: initial;
  line-height: 1.6;
}
#docs-card {
  color: #fff;
  text-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}

#docs-card img {
  object-fit: cover;
  object-position: left;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}
#docs-card img:nth-child(2) {
  display: none;
}
.dark #docs-card img:nth-child(2) {
  display: initial;
}
.dark #docs-card img:nth-child(1) {
  display: none;
}
#highlighting-card {
  min-height: 300px;
  background-image:
    linear-gradient(to top, transparent, #fff 50%),
    url(/assets/syntax-highlighting.svg);
  background-size: 634px;
  background-position: -6px calc(100% + 4px);
  background-repeat: no-repeat;
}
.dark #highlighting-card {
  background-image:
    linear-gradient(to top, transparent, #202020 50%),
    url(/assets/syntax-highlighting.svg);
}
.feat-darkmode {
  min-height: 300px;
}
.feat-darkmode h3 {
  font-size: 48px;
}
#search-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#search-card p {
  max-width: 320px;
}
#search-card video {
  position: absolute;
  right: 0;
  top: 24px;
  height: 430px;
  pointer-events: none;
  max-width: 60%;
}
#fs-card {
  min-height: 240px;
}
#fs-card h3 {
  text-align: left;
  width: min(300px, 41%);
  min-width: 155px;
}
#a11y-card {
  background-image: url(/assets/high-contrast.png);
  background-position: -160px 160px;
}
@media screen and (max-width: 1300px) {
  #a11y-card {
    background-image:
      linear-gradient(to bottom, white, transparent),
      url(/assets/high-contrast.png);
  }
}
@media screen and (max-width: 1200px) {
  #highlighting-card {
    aspect-ratio: auto;
  }
  .feat-darkmode h3 {
    font-size: 4vw;
    font-size: min(48px, max(4vw, 30px));
  }
  #search-card video {
    aspect-ratio: 787/623;
    height: auto;
  }
  .headline {
    letter-spacing: -0.08rem;
  }
}
@media screen and (max-width: 1024px) {
  #docs-card {
    aspect-ratio: 135/86;
  }
  #search-card {
    aspect-ratio: 8/3;
  }
  #search-card h3 {
    text-align: left;
  }
  #highlighting-card {
    background-size: 136%;
  }
  #a11y-card {
    background-image: url(/assets/high-contrast.png);
    background-position: center 160px;
  }
}
@media screen and (max-width: 768px) {
  #docs-card {
    min-height: 348px;
    width: 100%;
    aspect-ratio: auto;
  }
  #docs-card img {
    object-position: -26px 0;
    width: 250%;
    max-width: initial;
  }
}
@media screen and (max-width: 640px) {
  #search-card {
    aspect-ratio: 2.5/2;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 350px;
  }
  #search-card h3 {
    text-align: center;
  }
  #search-card p {
    max-width: 100%;
  }
  #search-card video {
    position: relative;
    margin: 0.75em -1.75em 0;
    max-width: calc(100% + 3.5em);
  }
  .dark #search-card video {
    mix-blend-mode: lighten;
  }
}
